/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aula_threads;

/**
 *
 * @author G0006185
 */
public class Aula_threads {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws InterruptedException {
        System.out.println("Inicio: Main");
        Contador mt1 = new Contador(10,"Thread-1");
        Contador mt2 = new Contador(20,"Thread-2");;
        mt1.start();
        mt2.start();
        mt2.join();
        System.out.println("Fim: Main");
    }
}
